import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

public class Water extends Accesories
{
    private int level;

    /**
     * Water Constructor.
     */
    public Water(int lev)
    {
        int level=lev;
    }

    /**
     * Method act.
     */
    public void act() 
    {
        shift( super.getX(), super.getY(), 3, 0, level);   //half size of the grass picture.
    }  

    /**
     * Method lose. It returns true if the man fall to the lake.
     */
    public boolean lose()
    {
        return isTouching( Man.class);
    }
}
